#ifndef QPROJECTPLUGIN_H
#define QPROJECTPLUGIN_H

#include "../../include/plugininterface.h"

#include "../../include/pageinterface.h"

typedef QMap<QString,QString>   FindResult;

class QProjectWidget :public PageInterface
{
    Q_OBJECT
public:
    QProjectWidget(AbstractCore *core);

    QString         text();
    QIcon           icon();
    QWidget*        widget();
    int             index();
    bool            enabled();

    QFindResult*    search(const QString& text,bool sensitive,bool whole);

protected:
    FindResult*     check(const QString &name,const QString &value,const QString &text,bool sensitive,bool whole);
protected:
    QString         m_text;
    QIcon           m_icon;
    AbstractCore    *m_core;
    QWidget*        m_widget;

};


class QProjectPlugin: public PluginInterface
{
    Q_OBJECT
    Q_INTERFACES(PluginInterface)
public:
    void    initPlugin(AbstractCore *core);
};

#endif // QPROJECTPLUGIN_H
